<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="ff"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Subscribe</title>
<link rel="stylesheet" type="text/css"
	href="mystyle.css" media="screen" />
<script type="text/javascript">
	function submitForm() {
		if (document.subscriberForm.name.value == "") {
			alert("First Name should not be left blank");
			document.subscriberForm.name.focus();
			return false;
		}
		if (document.subscriberForm.email.value == "") {
			alert("Email should not be left blank");
			document.subscriberForm.email.focus();
			return false;
		}
		document.forms[0].submit();
	}
</script>
</head>
<body>
	<h1 align="center" style="font-family: Verdana; color: navy;">
		DAILY SPORTS
	</h1>
	<div align="center">
		<ff:form name="subscriberForm" method="post"
			commandName="fsubscriberForm"
			action="${pageContext.request.contextPath}/dailySports/addSubscriber.htm">
			<div id="contact_form">
				<div class="form_row">
					<label>Name:</label><input type="text" name="name"
						class="contact_input" />
				</div>
				<div class="form_row">
					<label>Email:</label><input type="text" name="email"
						class="contact_input" />
				</div>
				<div class="send">
					<a id="submitButton" href="#" onclick="submitForm();">Subscribe</a>
				</div>
			</div>

		</ff:form>
	</div>
	<br/>
	<br/>
	<br/>
	<br/>
	<br/>
	<br/>
	<h4 align="center">click <a href="unsubscribe.jsp"> here </a> to unsubscribe</h4>
</body>
</html>